//
//  PreferencesViewController.h
//  TwitterFon
//
//  Created by koolearn on 11-4-9.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kSettingAccountSection 0
#define kSettingGroup 1
#define kSettingCard 2
#define kSettingOtherSection 3

#define kTagUserName 0
#define kTagPassword 1
#define kTagClearLocalCache 2
#define kTagLoadAllTabOnLaunch 3
#define kTagAutoScrollToFirstUnread 4
#define kTagAutoRefresh 5

#define kKeyUserName @"username"
#define kKeyPassword @"password"
#define kKeyClearLocalCache @"clearLocalCache"
#define kKeyLoadAllTabOnLaunch @"loadAllTabOnLaunch"
#define kKeyAutoRefresh @"autoRefresh"
#define kKeyAutoScrollToFirstUnread @"autoScrollToFirstUnread"

@interface PreferencesViewController : UITableViewController <UITextFieldDelegate> {
	UITextField* textFieldBeingEdited;
	NSString* userName;
	NSString* password;
	BOOL clearLocalCache;
	BOOL loadAllTabOnLaunch;
	BOOL autoScrollToFirstUnread;
	BOOL autoRefresh;
}


@property (nonatomic, retain) UITextField* textFieldBeingEdited;
@property (nonatomic, retain) NSString* userName;
@property (nonatomic, retain) NSString* password;

@end
